<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
  <link rel="stylesheet" href="../assets/css/font-awesome.min.css" />
  <!--[if IE 7]>
  <link rel="stylesheet" href="../assets/css/font-awesome-ie7.min.css"/>
  <![endif]-->
  <link rel="stylesheet" href="../assets/css/jquery-ui-1.10.3.full.min.css">
  <link rel="stylesheet" href="../assets/css/ace.min.css" />
  <link rel="stylesheet" href="../css/style.css"/>
<title>文章管理</title>
</head>

<body>
<div class="page-content">
<!--菜单管理-->

<div class="Menu_Manager">
 <div class="add_menu">
  <div id="Adding_menu" style="display:none">
  <div class="page-content">
     <table cellpadding="0" cellspacing="0" width="100%">
      <tr><td class="label_name">文章编号</td><td><input name="文章编号" type="text"  class="addtext"  value="文章编号" style="width:300px"/></td></tr>
      <tr><td class="label_name">文章名称</td><td><input name="文章名称" type="text"  class="addtext"  value="文章名称" style="width:300px"/></td></tr>
      <tr><td class="label_name">文章类型</td><td><input name="" type="text"  class="" value="文章类型" readonly="true" style="width:300px"/></td></tr>
      <tr><td class="label_name">发布人编号</td><td><input name="" type="text"  class="" value="发布人编号" readonly="true" style="width:300px"/></td></tr>
      <tr><td class="label_name">预览照片</td><td><input name="" type="text"  class="" value="预览照片" readonly="true" style="width:300px"/></td></tr>
      <tr><td class="label_name">发布时间</td><td><input name="" type="text"  class="" value="发布时间" readonly="true" style="width:300px"/></td></tr>
     </table>
    </div>
 </div>
 </div>
 <div class="Menu Manager_style">
  <span class="title_name">菜单列表</span>
  <div class="table_menu_list">
   <table id="Menu_list" cellpadding="0" cellspacing="0" class="table table-striped table-bordered table-hover">
    <thead>
     <tr>
     <th>文章编号</th>
     <th>文章名称</th>
     <th>文章类型</th>
     <th>发布人编号</th>
     <th>预览照片</th>
     <th>发布时间</th>
     <th>操作</th>
     </tr>
    </thead>
    <tbody>
     <tr>
     <td>1</td>
     <td class="atxt_name"></td>
     <td></td>
     <td></td>
     <td></td>
     <td></td>
     <td><button  type="button" class="btn btn-primary Adding_menu_btn">修改</button> </td>
     </tr>
     <tr>
      <td>1</td>
      <td class="atxt_name"></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td><button  type="button" class="btn btn-primary Adding_menu_btn">修改</button> </td>
      </tr>
      <tr>
        <td>1</td>
        <td class="atxt_name"></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td><button  type="button" class="btn btn-primary Adding_menu_btn">修改</button> </td>
        </tr>
    </tbody>
   </table>
  </div>
 </div>
</div>
</div>
	<script src="../assets/js/jquery.min.js"></script>
		<script type="text/javascript">
			window.jQuery || document.write("<script src='../assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>
		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='../assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
	<script src="../assets/js/bootstrap.min.js"></script>
    <script src="../assets/layer/layer.js" type="text/javascript"></script>
<script type="text/javascript">

 //弹出图层
 $('.Adding_menu_btn').on('click', function(){
    layer.open({
        type: 1,
        title: '修改菜单',
		shadeClose: true, //点击遮罩关闭层
        area : ['500px' , ''],
        content:$('#Adding_menu'),
		btn: ['修改','关闭'],
	    yes: function(index, layero){
		  var str="";
		   $(".addtext").each(function(n){
			if($(this).val()=="")
             {
			   layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
               title: '提示框',
			   icon:0,
               });

          }
		 else{
			  layer.alert('修改成功！',{
               title: '提示框',
			icon:1,
			  });
			  layer.close(index);
		  }
	  });

     }
});

});
</script>
</body>
</html>
